package com.service;

import java.util.List;

import com.dao.StudentDao;
import com.model.Student;

public class StudentService {
	StudentDao dao = new StudentDao();
	
	//修改学生
	public void update(Student stu) throws Exception{
		dao.update(stu);
	}
	
	public List<Student> query(String sid,Integer cp,Integer pagesize) throws Exception{
		return dao.query(sid,cp,pagesize);
	}
	
	public int count(String sid){
		return dao.count(sid);
	}
	
	public void add(Student stu) throws Exception{
		dao.add(stu);
	}
}
